package com.greyshark.lib.bluetooth.core

import java.util.UUID

class BleConst {

    companion object{
        const val CHANGE_GATT_MAC = "AA:BB:CC:DD:EE:FF"
        val UUID_CHARACTERISTIC_UPDATE_NOTIFICATION_DESCRIPTOR: UUID = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb")

        const val BLE_STATUS_CONNECTING = "BLE_STATUS_CONNECTING"
        const val BLE_STATUS_DISCOVER_SERVICE = "BLE_STATUS_DISCOVER_SERVICE"
        const val BLE_STATUS_CONNECTED = "BLE_STATUS_CONNECTED"
        const val BLE_STATUS_DISCONNECTED = "BLE_STATUS_DISCONNECTED"
        const val BLE_STATUS_TIMEOUT = "BLE_STATUS_TIMEOUT"

        //最大连接次数
        const val CONNECT_TIME_OUT_COUNT = 3
        //再次发起连接间隔时间
        const val DELAYED_CONNECT_INTERVAL_TIME = 3000L

        const val SCAN_PERIOD_BLE_SERVICE = 8_000L
        const val CONNECT_TIMES = 3
        const val CONNECT_TIMEOUT = 15_000L
        const val DELAYED_CONNECT_TIME = 3000L
        const val CONNECT_RX_ERROR_DELAYED_TIME = 3_000L
        const val DISCOVER_SERVICES_TIMEOUT = 8_000L
        const val ENABLE_CHARACTERISTIC_TIMEOUT = 3_000L
        const val CMD_THREAD_SLEEP_TIME = 10L
        const val SINGLE_CMD_TIME_OUT = 12_000L

        const val CMD_DELAY_TIME = 10

    }
}